package j06jicheng;

public class J06 {
}

class Man{
    String name;
    int age;
    String sex;
}
class Teacher extends Man{
    int salary;
}
class Student extends Man{
    int no;
}
class Test{
    public static void main(String[] args) {
        Teacher t1 = new Teacher();
        t1.name = "鲁迅";
        System.out.println("t1.name = " + t1.name);

        Student s1 = new Student();
        s1.name="周树人";
        s1.no = 23;

    }
}
